import { Component, OnInit } from '@angular/core';

declare var form: any;

@Component({
  templateUrl: './data.input.config.component.html'
})
export class DataInputConfigComponent implements OnInit {

  // 表单
  fs: any = null;
  // 字典
  checkTypeDic: any = null;
  repetitionStrategyDic: any = null;
  dataTypeDic: any = null;

  constructor() {
    this.fs = new form.FormSimpleService('inputconfig', {
      orderObject: { id: 0 },
      keyField: 'id'
    });
    this.fs.loadData(true);
    this.checkTypeDic = new form.DictionaryService('d_check_type');
    this.repetitionStrategyDic = new form.DictionaryService('d_repetition_strategy');
    this.dataTypeDic = new form.DictionaryService('f_datatype');
    this.dataTypeDic.loadAll();
  }

  ngOnInit() {
  }
}
